package com.ld.security.auth.sdk.filter;


import cn.hutool.core.lang.Console;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Component;
import org.springframework.web.filter.OncePerRequestFilter;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotNull;
import java.io.IOException;
import java.util.List;
import java.util.stream.Collectors;


/**
 * @ClassName JwtAuthenticationTokenFilter
 * @Description jwt拦截器
 * @Author Player
 * @Date 2019-05-16 15:59
 * @Version 1.0
 **/
@Component
@Slf4j
public class JwtAuthenticationTokenFilter extends OncePerRequestFilter {




    @Override
    protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {


        Console.log("拦截器");

        filterChain.doFilter(httpServletRequest, httpServletResponse);

    }

}
